home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Palm Z22
/
Palm Z22 CD.iso
/
pc
/
PalmSoftware.pkg
/
Contents
/
Resources
/
InstallationCheck
< prev
next >
Wrap
Text File
|
2005-08-11
|
823b
|
36 lines
#!/bin/sh
# File name: VolumeCheck
#
# Description:
#
# Copyright 2004, palmOne , Inc.
#
#
# Modification History:
# <1> 05/06/04 JMP Implemented
#
#
# Argument 1 (the only argument to VolumeCheck) is the full path to a volume
# in Installer's Target Select panel that a user can choose to
# install the software on.
# The path is of the form "/" or /Volume/{volume name}
#
retval=0
testval=`sw_vers | grep "ProductVersion" | awk ' {print ($2 > 10.1) ? "0" : "1" }' `
#echo $testval
if test $testval = "1"
then
let retval=(1<<5)
#echo "$retval"
let retval=(retval|(1<<6))
#echo "$retval"
let retval=(retval|2)
#echo "$retval"
fi
# Sets the message value bits (bits 0 to 4) to 16,
# specifying the message associated with "16" in the strings file.
#
#echo "$retval"
exit $retval